package com.soryin.entity;

import java.sql.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 人物Block
 * @author Hello_海生
 * @date 2014年3月6日
 */

@Entity
@Table(name="Soryin_B_Figure")
public class FigureBlock {
	private int id;		
	private Soryin SoryinId;
	private String name;		//姓名
	private String sex;			//性别
	private int age;			//年龄
	private String phone;		//手机
	private Date birth;			//生日
	private String address;		//现居地址
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	public Soryin getSoryinId() {
		return SoryinId;
	}
	public void setSoryinId(Soryin soryinId) {
		SoryinId = soryinId;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	
}
